package his.service;

import his.entity.Department;
import org.example.his.common.api.CommonResponse;

import java.util.List;

public interface DepartmentService {

    public CommonResponse<String> convert_id_to_name(int deptid);
    public CommonResponse<List<Department>> update_departments_byid(int id,String deptCode,String deptName,int deptCategoryID,int deptType);
    public CommonResponse<List<Department>> delete_departments_byid(int id);
    public CommonResponse<List<Department>> getall_departments();
    public CommonResponse<List<Department>> get_departments_bycodename(String keywords);
    public CommonResponse new_department(String deptCode,String deptName,int deptCategoryID,int deptType);
}
